/* eslint-disable prettier/prettier */
let path = require('path')
function resolve(dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    publicPath: './',
    outputDir: 'dist',
    lintOnSave: true,
    runtimeCompiler: true,
    // 调整内部的 webpack 配置。
    // 查阅 https://github.com/vuejs/vue-doc-zh-cn/vue-cli/webpack.md

    chainWebpack: config => {
        config.resolve.alias.set('@', resolve('src'))
    },
    configureWebpack: () => { },
    // 配置 webpack-dev-server 行为。
    devServer: {
        host: '0.0.0.0',
        port: 8080,
        // open:true,
        proxy: {
      "/": {
        // target: "http://120.76.56.229/",
                target: 'http://www.mengchangjunjiuye.com:8088',
                changeOrigin: true,
                ws: false,
                pathRewrite: {
                    '^/': ''
                }
            }
        }
    }
}